<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/29
 * Time: 10:38
 */



echo '完整地址:'.$_SERVER['PATH'].$_SERVER['REQUEST_URI'];

echo '<br />';

echo '请求方法:'.$_SERVER['REQUEST_METHOD'];

echo '<br />';

echo '用户IP:'.$_SERVER['SERVER_ADDR'];

echo '<br />';

echo  'URL参数：';
//print_r($_GET);
if ($_SERVER['REQUEST_METHOD']=='GET'){
    print_r($_GET);
}
else if ($_SERVER['REQUEST_METHOD']=='POST'){
    print_r($_POST);
}